package com.cat3studios.tile.engine;

import java.util.LinkedList;

public class SubsystemManager{
	static LinkedList<Subsystem> subsystems;
	Boolean registerSubsystem(Subsystem subsystem){
		subsystems = new LinkedList<Subsystem>();
		if(subsystems.contains(subsystem)){
			return false;
		}else{
			subsystems.add(subsystem);
			return true;
		}
	}
	void updateSubsystems(long delta){
		for(int i = 0; subsystems.size() <= i; i++){
			subsystems.get(i).update(0);
		}
	}
}